package com.axter.libs.photo.previewphoto;

import android.view.View;
import android.widget.TextView;

import com.axter.libs.photo.R;

/**
 * 预览图片
 * Created by axter on 2016/11/29.
 */

public class PreviewPhotoPreviewActivity extends PreviewPhotoBaseActivity {
    private TextView tv_page;

    @Override
    protected int getContentView() {
        return R.layout.previewphoto_mpreview;
    }

    @Override
    protected void initView() {
        super.initView();
        tv_page = (TextView) findViewById(R.id.tv_page);
    }

    @Override
    public void onPhotoTap(View view, float v, float v1) {
        finish();
    }

    @Override
    public void setPageText(int position) {
        tv_page.setText(position + 1 + "/" + getPagerCount());
    }
}
